package com.gmail.deathswing.colormix.util;

import java.util.Iterator;
import java.util.List;

import android.util.Log;

import com.gmail.deathswing.colormix.atom.ColorAtom;

public class CollisionUtil {
	public static final int HIT_HORIZONTAL = 1;
	public static final int HIT_VERTICAL = 2;
	public static final int NOT_HIT = 0 ;
	
//	public static int checkCollisionBounds(ColorAtom target){
//		if(target.x<=0 || target.x >=480){
//			return HIT_HORIZONTAL;
//		}
//		if(target.y<=0 || target.y >= 800){
//			return HIT_VERTICAL;
//		}
//		return NOT_HIT ;
//	}
//	
//	public static ColorAtom checkTouch(float x, float y, Iterator<ColorAtom> itor){
//		while(itor.hasNext()){
//			ColorAtom atom = itor.next();
//			if(Math.abs(x-atom.x)<= atom.radius*atom.scale || Math.abs(y-atom.y)<= atom.radius*atom.scale){
//				Log.d("game", "touch one" + atom.toString());
//				return atom;
//			}
//		}
//		return null ;
//	}
}
